home *** CD-ROM | disk | FTP | other *** search
- class PointsCloud
- {
- var position;
- var value;
- var frame;
- var bmpCanvas;
- function PointsCloud(pos, valueNew)
- {
- this.position = pos.clone();
- this.value = valueNew;
- this.frame = 0;
- this.bmpCanvas = Game.bmpShots;
- }
- function step(Void)
- {
- if(this.frame++ == 35)
- {
- Game.getInstance().removePoints(this);
- }
- }
- function draw(leftEdge)
- {
- var _loc7_ = this.position.x - leftEdge;
- var _loc6_ = this.position.y;
- var _loc4_ = _root.getNextHighestDepth();
- var _loc3_ = _root.attachMovie("points anim","mcPoints" + _loc4_,_loc4_);
- _loc3_.mcPoints.tfFront.text = this.value;
- _loc3_.mcPoints.tfOutline0.text = this.value;
- _loc3_.mcPoints.tfOutline1.text = this.value;
- _loc3_.mcPoints.tfOutline2.text = this.value;
- _loc3_.mcPoints.tfOutline3.text = this.value;
- _loc3_.gotoAndStop(this.frame);
- var _loc5_ = new flash.geom.Matrix();
- _loc5_.translate(_loc7_,Game.screenH - _loc6_);
- this.bmpCanvas.draw(_loc3_,_loc5_,null,null,null,true);
- _loc3_.removeMovieClip();
- }
- }
-